package com.micro.services.toolkit.provider;

import org.apache.curator.framework.CuratorFramework;

public interface CuratorFrameworkProviderToolkit {

	/**
	 * ip1:port,ip2:port
	 * @return
	 */
	public String getZkHost();
	
	public String getAppName();
	
	public String getNameSpace();
	
	public int getConnectionTimeoutMs();
	
	public int getSessionTimeoutMs();
	
	public int getMaxRetryTimes();
	
	public CuratorFramework buildZkClient()throws Exception;
	
	public CuratorFramework getZkClient() throws Exception;
	
	public void startZkClient()throws Exception;
	
	public void destroyZkClient()throws Exception;
	
}